package net.tycmc.cty.ctyms.timejob.iems.job;



import java.text.ParseException;

import net.tycmc.cty.ctyms.timejob.iems.service.MtnFaultServcie;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 定时作业，用于处理故障状态采集信息
 * @author fengjie
 *
 */
public class MtnFaultJob extends QuartzJobBean {
	
	private MtnFaultServcie jobData;

	public MtnFaultServcie getJobData() {
		return jobData;
	}

	public void setJobData(MtnFaultServcie jobData) {
		this.jobData = jobData;
	}

	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		//机械报警信息
		this.jobData.calAlarmStateHandle(null);
		//故障信息
			try {
				this.jobData.calFaultStateHandle(null);
			} catch (ParseException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
	}

}
